#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Date          : 2024/10/4
@File          : pandas_start_one.py
@Author        : liwei68
@Description   : 
"""

import numpy as np
import matplotlib.pyplot as plt

# 生成一些随机数据
np.random.seed(19680801)
x = np.random.randn(10000)
y = np.random.randn(10000)

# 绘制Hexbin plot
plt.hexbin(x, y, gridsize=50, cmap='viridis')

# 添加颜色条
cb = plt.colorbar(label='counts in bin')

# 设置图表标题和坐标轴标签
plt.title("Hexbin of 10,000 points")
plt.xlabel("X")
plt.ylabel("Y")
plt.plot()
plt.savefig('./pandas_start_one.png')